var http=require("http");
var fs=require("fs");
var path=require("path");

var filePath=path.join(__dirname,'/data.txt');

http.createServer((req,res)=>{
    res.setHeader('content-type','text/plain;charset=utf-8');
    var readable=fs.createReadStream(filePath);
    readable.pipe(res);
}).listen(8081);
console.log("server is listening 8081");

